#pragma once
#include <AIUITest.h>
#include <iat_online_record_sample.hpp>
#include <MessageQueue.hpp>
#include <thread>
#include <tts_sample.hpp>
#include <IOTController.hpp>
class TestListener : public IAIUIListener
{
private:
	FileUtil::DataFileHelper* mTtsFileHelper;
public:
	TestListener();
	~TestListener();
	void onEvent(const IAIUIEvent& event) const;
};
void on_result(const char *result, char is_last);
void on_speech_begin();
void on_speech_end(int reason);
extern speech_rec_notifier recnotifier;
extern bool sound_end;
extern string input_text;
extern bool m_sex;
void push_speech_msg(string text);
void down_play(string text,bool sex = true);